package com.healthtop.service;

import com.alibaba.fastjson.JSONObject;
import com.healthtop.common.Page;
import com.healthtop.dto.*;
import com.healthtop.model.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface DIYService {

    List<ResourceDto> getParentResource(long uid);

    List<ResourceDto> getResourceByPid(long id, long uid);

    Page selectXsGameGategoryPage(Page page);

    Page selectXsGameDetailsPage(Page page);

    List<XsUser> selectUser(String userName);

    List<XsRole> selectXsRoleByUid(Long userId);

    int selectXsUserCount(Map map);

    Page getMenuList(Page page);

    Page selectXsRoleList(Page page);

    List<Long> selectMenuIdByRoleId(long roleId);

    Page selectXsUserList(Page page);

    SitesDto getSitesAll(HttpServletRequest request, HttpServletResponse response, SitesDto sitesDto, Page page);

    List<Map> getCmsXsMenuList();

    Page selectXsDictionaryList(Page page);

    SitesDto forwardGameDetail(SitesDto sitesDto,Page page);

    String upload(HttpServletRequest request, HttpServletResponse response);

    String videoUpload(HttpServletRequest request, HttpServletResponse response);

    Page selectXsArticleCategoryPage(Page page);
}
